package com.gouqi.lpl.controller;

import com.gouqi.lpl.domain.TeamStatistics;
import com.gouqi.lpl.service.TeamStatisticsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

@RestController
@RequestMapping("/teamStatistics")
public class TeamStatisticsController implements Serializable {

    @Resource
    private TeamStatisticsService teamStatisticsService;

    @GetMapping("/get")
    public List<TeamStatistics> getTeamStatistics() {
        List<TeamStatistics> teamStatisticsList = teamStatisticsService.getTeamStatistics();
        return teamStatisticsList;
    }

}